/* 苹果风格CSS */
:root {
    --apple-blue: #0071e3;
    --apple-light-gray: #f5f5f7;
    --apple-dark-gray: #1d1d1f;
    --apple-mid-gray: #86868b;
    --apple-border: #d2d2d7;
    --apple-shadow: rgba(0, 0, 0, 0.1);
    --apple-focus: rgba(0, 113, 227, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--apple-light-gray);
    color: var(--apple-dark-gray);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 980px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--apple-shadow);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--apple-border);
}

.header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--apple-dark-gray);
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--apple-mid-gray);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--apple-blue);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #0077ED;
    transform: translateY(-1px);
}

.btn.secondary {
    background-color: white;
    color: var(--apple-dark-gray);
    border: 1px solid var(--apple-border);
}

.btn.secondary:hover {
    background-color: #f5f5f7;
}

/* 表单样式 */
.form-container {
    margin-top: 30px;
}

.form-container h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-dark-gray);
}

.form-group input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    background-color: white;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px var(--apple-focus);
}

.form-actions {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--apple-shadow);
}

table th {
    background-color: #f9f9fb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: var(--apple-dark-gray);
    border-bottom: 1px solid var(--apple-border);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--apple-border);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f9f9fb;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    font-size: 14px;
}

.search-bar .btn {
    padding: 10px 16px;
}

/* 登录页面特殊样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--apple-shadow);
}

.login-container h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--apple-dark-gray);
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

.error-message {
    color: #ff3b30;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* 内容区样式 */
.content {
    margin-top: 20px;
}

.content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
}

.actions {
    margin-bottom: 20px;
}